package com.example.controller;

import com.example.service.XhStreamClientService;
import com.gitee.zhuhjay.xunfei.sdk.model.ApiResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private XhStreamClientService xhStreamClientService;

    @RequestMapping("send")
    public ApiResponse send(String text) throws Exception {
        return xhStreamClientService.send(text);
    }
}
